package com.coolbi.security.dao;

import java.util.List;

import com.coolbi.security.entity.RoleToUrl;
import com.coolbi.security.entity.RoleUrl;
import com.coolbi.security.entity.Roles;

public interface RoleToUrlDao extends SimpleDao<RoleToUrl> {

	/**根据URL ID查询角色*/
	List<Roles> findRoleByUrlId(long id);
	/**根据角色ID查询URL*/
	List<RoleUrl> findUrlByRoleId(long id);
	/**根据URL ID删除*/
	int deleteByUrlId(long id);
	/**根据URLID集合及角色ID获取URL*/
	List<Long> findByUrlsAndRoleId(Long[] urlArray, Long roleId);
	/**根据URL ID集合及角色ID批量删除*/
	int deleteByUrlIds(Long[] urlArray, Long roleId);
}
